package chapter_8;

import java.util.LinkedList;

public class Test8 {

    public static void main(String[] args) {
        LinkedList<String> list = new LinkedList<>();
        list.add("aa");
        list.add("bb");
        list.add("cc");
        list.add("dd");
        list.addFirst("你好");
        list.addLast("hello");
        System.out.println(list);
        list.removeLast();
        list.removeFirst();
        System.out.println(list);
    }
}
